using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

namespace HappyPlus.DataConfig
{
	[Serializable]
	public class TestClassNameCollection : ScriptableObject
	{
		[SerializeField]
		public List<TestClassName> TestClassNameList;

		public Dictionary<int, TestClassName> LoadDataToMap()
		{

			if(TestClassNameList == null)
			{
				return new Dictionary<int, TestClassName>();
			}

			var dataMap = new Dictionary<int, TestClassName>();
			foreach (var item in TestClassNameList)
			{
				dataMap.Add(item.ID, item);
			}
			return dataMap;
		}
	}

	[Serializable]
	public class TestClassName
	{

		/// <summary>
		/// ID
		/// </summary>
		[SerializeField]
		public int ID;

		/// <summary>
		/// 整数值
		/// </summary>
		[SerializeField]
		public int IntValue;

		/// <summary>
		/// 浮点数值
		/// </summary>
		[SerializeField]
		public float FloatValue;

		/// <summary>
		/// 字符串
		/// </summary>
		[SerializeField]
		public string StringValue;

	}
}

